package com.netease.pris.activity.view;

import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import com.netease.b.a.b;
import com.netease.b.a.g;
import com.netease.framework.b.a;
import com.netease.framework.b.c;
import com.netease.pris.activity.view.WebViews.WebViewAdapter;
import java.util.LinkedList;
import java.util.List;

class ag
  implements com.netease.framework.b.d
{
  Handler a = new an(this);
  private List b;
  private PrisArticleView c;

  protected ag(PrisArticleView paramPrisArticleView)
  {
    this.c = paramPrisArticleView;
    this.b = new LinkedList();
  }

  public void a()
  {
    synchronized (this.b)
    {
      this.b.clear();
      return;
    }
  }

  public void a(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
  {
    synchronized (this.b)
    {
      if ((this.b.remove(Integer.valueOf(paramInt3))) && (paramObject != null))
        this.a.obtainMessage(paramInt1, paramInt2, paramInt3, paramObject).sendToTarget();
    }
  }

  public void a(int paramInt1, int paramInt2, b paramb)
  {
    if ((this.c == null) || (PrisArticleView.c(this.c) == null) || (PrisArticleView.h(this.c) == null));
    while (true)
    {
      return;
      String str = paramb.b;
      if (!TextUtils.isEmpty(str))
      {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append("javascript:refreshImg('");
        localStringBuilder.append(paramInt1);
        localStringBuilder.append("','");
        localStringBuilder.append("file://");
        localStringBuilder.append(str);
        localStringBuilder.append("')");
        PrisArticleView.h(this.c).loadUrl(localStringBuilder.toString());
      }
      synchronized (PrisArticleView.c(this.c).c())
      {
        ???.remove(paramb.a);
        if (???.size() != 0)
          continue;
        PrisArticleView.a(this.c, true);
      }
    }
  }

  public void a(int paramInt1, int paramInt2, String paramString)
  {
    if ((this.c == null) || (PrisArticleView.c(this.c) == null));
    while (true)
    {
      return;
      List localList = PrisArticleView.c(this.c).c();
      if ((paramString == null) || (localList == null))
        continue;
      monitorenter;
      try
      {
        localList.remove(paramString);
        monitorexit;
        if (localList.size() != 0)
          continue;
        PrisArticleView.a(this.c, true);
        continue;
      }
      finally
      {
        monitorexit;
      }
    }
    throw localObject;
  }

  public void a(String paramString, int paramInt)
  {
    g localg = g.a(paramString, paramInt, false);
    localg.b(PrisArticleView.n(this.c));
    localg.c(this.c.e());
    localg.a(this);
    synchronized (this.b)
    {
      this.b.add(Integer.valueOf(localg.m()));
      com.netease.image.d.a().d().a(localg);
      return;
    }
  }

  public void b()
  {
    this.c = null;
  }

  public void b(int paramInt1, int paramInt2, int paramInt3, Object paramObject)
  {
    synchronized (this.b)
    {
      if ((this.b.remove(Integer.valueOf(paramInt3))) && (paramObject != null))
        a(paramInt3, paramInt1, (String)paramObject);
    }
  }
}

/* Location:           D:\android\hack\dex2jar-0.0.9.8\classes_dex2jar.jar
 * Qualified Name:     com.netease.pris.activity.view.ag
 * JD-Core Version:    0.6.0
 */